﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Inovout.Cloud.DataWarehouse.Web.Models
{
    public class DataCollectionRelationConditionInfo
    {
        public bool IsValueCondition { get; set; }
        private string sourceDataCollectionProperty;
        public string SourceDataCollectionProperty
        {
            get
            {
                if (sourceDataCollectionProperty != null)
                {
                    return sourceDataCollectionProperty.ToLower();
                }
                else 
                {
                    return null;
                }
            }
            set
            {
                this.sourceDataCollectionProperty = value;
            }
        }

        private string targetDataCollectionProperty;
        public string TargetDataCollectionProperty 
        {
            get
            {
                if (targetDataCollectionProperty != null)
                {
                    return targetDataCollectionProperty.ToLower();
                }
                else
                {
                    return null;
                }
            }
            set
            {
                this.targetDataCollectionProperty = value;
            }
        }
        private string operation;
        public string Operation 
        {
            get
            {
                return operation.ToLower();
            }
            set
            {
                this.operation = value;
            }
        }
        public string ConditionOperation { get; set; }
        public string TargetValue { get; set; }
    }
}